Optimal. Leaf size=38 \[ \frac{(a+b x)^3 (A b-a B)}{3 b^2}+\frac{B (a+b x)^4}{4 b^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0675366, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077 \[ \frac{(a+b x)^3 (A b-a B)}{3 b^2}+\frac{B (a+b x)^4}{4 b^2} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)^2*(A + B*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 9.44801, size = 31, normalized size = 0.82 \[ \frac{B \left (a + b x\right )^{4}}{4 b^{2}} + \frac{\left (a + b x\right )^{3} \left (A b - B a\right )}{3 b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**2*(B*x+A),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0153297, size = 46, normalized size = 1.21 \[ \frac{1}{12} x \left (6 a^2 (2 A+B x)+4 a b x (3 A+2 B x)+b^2 x^2 (4 A+3 B x)\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x)^2*(A + B*x),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0., size = 49, normalized size = 1.3 \[{\frac{{b}^{2}B{x}^{4}}{4}}+{\frac{ \left ({b}^{2}A+2\,Bba \right ){x}^{3}}{3}}+{\frac{ \left ( 2\,Aab+B{a}^{2} \right ){x}^{2}}{2}}+{a}^{2}Ax \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^2*(B*x+A),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.3408, size = 65, normalized size = 1.71 \[ \frac{1}{4} \, B b^{2} x^{4} + A a^{2} x + \frac{1}{3} \,{\left (2 \, B a b + A b^{2}\right )} x^{3} + \frac{1}{2} \,{\left (B a^{2} + 2 \, A a b\right )} x^{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.183825, size = 1, normalized size = 0.03 \[ \frac{1}{4} x^{4} b^{2} B + \frac{2}{3} x^{3} b a B + \frac{1}{3} x^{3} b^{2} A + \frac{1}{2} x^{2} a^{2} B + x^{2} b a A + x a^{2} A \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.112135, size = 49, normalized size = 1.29 \[ A a^{2} x + \frac{B b^{2} x^{4}}{4} + x^{3} \left (\frac{A b^{2}}{3} + \frac{2 B a b}{3}\right ) + x^{2} \left (A a b + \frac{B a^{2}}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**2*(B*x+A),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.212113, size = 66, normalized size = 1.74 \[ \frac{1}{4} \, B b^{2} x^{4} + \frac{2}{3} \, B a b x^{3} + \frac{1}{3} \, A b^{2} x^{3} + \frac{1}{2} \, B a^{2} x^{2} + A a b x^{2} + A a^{2} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)^2,x, algorithm="giac")
[Out]